package com.gbk.clickhouseservicestruct.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.myweb.ck.mapping.ChTable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ChTable(name = "tig.T_TIG_VOLUME")
/**
 * 流向流量数据
 */
public class TIG_Volume{

    /**
     * ID 主键 唯一
     */
    private String id;

    /**
     * 路口编号
     */
    private String crossId;

    /**
     * 流向总流量
     */
    private int volume;

    /**
     * 各个流向流量数据
     */
    private int fvolume_01;
    private int fvolume_02;
    private int fvolume_03;
    private int fvolume_04;
    private int fvolume_05;
    private int fvolume_06;
    private int fvolume_07;
    private int fvolume_08;
    private int fvolume_09;
    private int fvolume_10;
    private int fvolume_11;
    private int fvolume_12;
    private int fvolume_13;
    private int fvolume_14;
    private int fvolume_15;
    private int fvolume_16;


    /**
     * 检测时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 入库时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date staDate;


}
